<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>攻略详情</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <style>
        /* 隐藏滚动条 */
        ::-webkit-scrollbar {
            display: none;
        }
        body {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        /* Mock up 样式 */
        .mock-up {
            position: relative;
            width: 375px;
            height: 812px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 40px;
            overflow: hidden;
        }
        /* 状态栏样式 */
        .status-bar {
            height: 44px;
            background: transparent;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            color: #000;
            font-size: 14px;
        }
        /* 底部操作栏样式 */
        .action-bar {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
        }
        /* 主按钮样式 */
        .primary-btn {
            background: linear-gradient(135deg, #4c8af0 0%, #3b7de3 100%);
        }
    </style>
</head>
<body class="bg-gray-100">
    <div class="mock-up">
        <!-- 状态栏 -->
        <div class="status-bar">
            <span>9:41</span>
            <div class="flex items-center space-x-1">
                <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
                    <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
                </svg>
                <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
                    <path d="M2 22h20V2L2 22z"/>
                </svg>
                <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
                    <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
                </svg>
            </div>
        </div>

        <!-- 主要内容 -->
        <div class="h-full pb-20 overflow-auto">
            <!-- 顶部图片 -->
            <div class="relative">
                <img src="https://images.unsplash.com/photo-1501785888041-af3ef285b470" alt="攻略封面" class="w-full h-64 object-cover">
                <!-- 返回按钮 -->
                <button class="absolute top-4 left-4 w-8 h-8 rounded-full bg-black bg-opacity-30 flex items-center justify-center">
                    <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"/>
                    </svg>
                </button>
                <!-- 分享按钮 -->
                <button class="absolute top-4 right-4 w-8 h-8 rounded-full bg-black bg-opacity-30 flex items-center justify-center">
                    <svg class="w-5 h-5 text-white" fill="currentColor" viewBox="0 0 24 24">
                        <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/>
                    </svg>
                </button>
            </div>

            <!-- 攻略信息 -->
            <div class="px-4 py-4 bg-white">
                <h1 class="text-xl font-bold mb-2">北京故宫深度一日游攻略</h1>
                
                <!-- 淡旺季价格切换 -->
                <div class="mb-3">
                    <div class="flex items-center space-x-4 mb-2">
                        <button id="peakSeason" class="px-3 py-1 bg-red-100 text-red-600 text-sm rounded-full" onclick="switchSeason('peak')">旺季价格</button>
                        <button id="offSeason" class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full" onclick="switchSeason('off')">淡季价格</button>
                    </div>
                    <div class="flex items-center justify-between">
                        <div class="flex items-center">
                            <span id="currentPrice" class="text-red-500 text-xl font-bold">¥399</span>
                            <span id="originalPrice" class="text-gray-400 text-sm ml-2 line-through">¥499</span>
                            <span id="seasonTag" class="ml-2 px-2 py-1 bg-red-100 text-red-600 text-xs rounded">旺季</span>
                        </div>
                        <span class="text-gray-400 text-sm">已售 2.8k</span>
                    </div>
                </div>
                
                <!-- 产品标签 -->
                <div class="flex flex-wrap gap-2 mb-3">
                    <span class="px-2 py-1 bg-blue-50 text-blue-500 text-xs rounded">含门票</span>
                    <span class="px-2 py-1 bg-blue-50 text-blue-500 text-xs rounded">专业讲解</span>
                    <span class="px-2 py-1 bg-blue-50 text-blue-500 text-xs rounded">午餐</span>
                    <span class="px-2 py-1 bg-green-50 text-green-500 text-xs rounded">热门推荐</span>
                    <span class="px-2 py-1 bg-purple-50 text-purple-500 text-xs rounded">限时特惠</span>
                    <span class="px-2 py-1 bg-orange-50 text-orange-500 text-xs rounded">亲子游</span>
                </div>
                
                <!-- 成交员信息 -->
                <div class="bg-gray-50 rounded-lg p-3">
                    <div class="flex items-center justify-between">
                        <div class="flex items-center">
                            <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
                                <span class="text-white text-sm font-bold">张</span>
                            </div>
                            <div class="ml-2">
                                <div class="text-sm font-medium">专属成交员：张小明</div>
                                <div class="text-xs text-gray-500">服务评分：4.9分 | 成交订单：1.2k+</div>
                            </div>
                        </div>
                        <button class="px-3 py-1 bg-green-500 text-white text-xs rounded-full">联系</button>
                    </div>
                </div>
            </div>

            <!-- 套餐选择 -->
            <div class="mt-2 px-4 py-4 bg-white">
                <h2 class="text-base font-medium mb-3">套餐选择</h2>
                <div class="space-y-3">
                    <div class="p-3 border border-blue-500 rounded-lg">
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="font-medium">基础套餐</h3>
                                <p class="text-sm text-gray-400 mt-1">含门票+专业讲解</p>
                            </div>
                            <div class="text-right">
                                <span id="basicPeakPrice" class="text-red-500 font-medium">¥399</span>
                                <span id="basicOffPrice" class="text-red-500 font-medium hidden">¥299</span>
                            </div>
                        </div>
                    </div>
                    <div class="p-3 border border-gray-200 rounded-lg">
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="font-medium">尊享套餐</h3>
                                <p class="text-sm text-gray-400 mt-1">含门票+专业讲解+午餐</p>
                            </div>
                            <div class="text-right">
                                <span id="premiumPeakPrice" class="text-red-500 font-medium">¥499</span>
                                <span id="premiumOffPrice" class="text-red-500 font-medium hidden">¥399</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 行程安排 -->
            <div class="mt-2 px-4 py-4 bg-white">
                <h2 class="text-base font-medium mb-3">行程安排</h2>
                <div class="space-y-4">
                    <div class="flex">
                        <div class="flex flex-col items-center">
                            <div class="w-6 h-6 rounded-full bg-blue-500 text-white flex items-center justify-center text-sm">1</div>
                            <div class="flex-1 w-px bg-gray-200 my-2"></div>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium">上午 09:00</h3>
                            <p class="text-sm text-gray-500 mt-1">故宫博物院集合，领取门票和讲解器</p>
                        </div>
                    </div>
                    <div class="flex">
                        <div class="flex flex-col items-center">
                            <div class="w-6 h-6 rounded-full bg-blue-500 text-white flex items-center justify-center text-sm">2</div>
                            <div class="flex-1 w-px bg-gray-200 my-2"></div>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium">上午 09:30-12:00</h3>
                            <p class="text-sm text-gray-500 mt-1">专业导游带队游览故宫经典景点</p>
                        </div>
                    </div>
                    <div class="flex">
                        <div class="flex flex-col items-center">
                            <div class="w-6 h-6 rounded-full bg-blue-500 text-white flex items-center justify-center text-sm">3</div>
                        </div>
                        <div class="ml-4">
                            <h3 class="font-medium">中午 12:00-13:30</h3>
                            <p class="text-sm text-gray-500 mt-1">午餐时间（尊享套餐含特色宫廷菜）</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 购买须知 -->
            <div class="mt-2 px-4 py-4 bg-white">
                <h2 class="text-base font-medium mb-3">购买须知</h2>
                <div class="space-y-2 text-sm text-gray-600">
                    <p>• 请至少提前1天预订</p>
                    <p>• 门票当天有效，过期作废</p>
                    <p>• 特殊天气可能会影响行程安排</p>
                    <p>• 建议穿着舒适的鞋子</p>
                </div>
            </div>
        </div>

        <!-- 底部操作栏 -->
        <div class="action-bar fixed bottom-0 left-0 right-0 h-20 flex items-center justify-between px-4">
            <div class="flex items-center space-x-4">
                <button class="flex flex-col items-center">
                    <svg class="w-6 h-6 text-gray-400" fill="currentColor" viewBox="0 0 24 24">
                        <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/>
                    </svg>
                    <span class="text-xs text-gray-400 mt-1">收藏</span>
                </button>
                <button class="flex flex-col items-center">
                    <svg class="w-6 h-6 text-gray-400" fill="currentColor" viewBox="0 0 24 24">
                        <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/>
                    </svg>
                    <span class="text-xs text-gray-400 mt-1">客服</span>
                </button>
            </div>
            <div class="flex items-center space-x-2">
                <button class="px-6 py-2 border border-blue-500 text-blue-500 rounded-full text-sm">加入购物车</button>
                <button class="primary-btn px-6 py-2 text-white rounded-full text-sm">立即购买</button>
            </div>
        </div>
    </div>
    <script>
        // 淡旺季价格切换功能
        function switchSeason(season) {
            const peakBtn = document.getElementById('peakSeason');
            const offBtn = document.getElementById('offSeason');
            const currentPrice = document.getElementById('currentPrice');
            const originalPrice = document.getElementById('originalPrice');
            const seasonTag = document.getElementById('seasonTag');
            
            // 套餐价格元素
            const basicPeakPrice = document.getElementById('basicPeakPrice');
            const basicOffPrice = document.getElementById('basicOffPrice');
            const premiumPeakPrice = document.getElementById('premiumPeakPrice');
            const premiumOffPrice = document.getElementById('premiumOffPrice');
            
            if (season === 'peak') {
                // 旺季样式
                peakBtn.className = 'px-3 py-1 bg-red-100 text-red-600 text-sm rounded-full';
                offBtn.className = 'px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full';
                
                // 旺季价格
                currentPrice.textContent = '¥399';
                originalPrice.textContent = '¥499';
                seasonTag.textContent = '旺季';
                seasonTag.className = 'ml-2 px-2 py-1 bg-red-100 text-red-600 text-xs rounded';
                
                // 套餐旺季价格
                basicPeakPrice.classList.remove('hidden');
                basicOffPrice.classList.add('hidden');
                premiumPeakPrice.classList.remove('hidden');
                premiumOffPrice.classList.add('hidden');
            } else {
                // 淡季样式
                peakBtn.className = 'px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full';
                offBtn.className = 'px-3 py-1 bg-blue-100 text-blue-600 text-sm rounded-full';
                
                // 淡季价格
                currentPrice.textContent = '¥299';
                originalPrice.textContent = '¥399';
                seasonTag.textContent = '淡季';
                seasonTag.className = 'ml-2 px-2 py-1 bg-blue-100 text-blue-600 text-xs rounded';
                
                // 套餐淡季价格
                basicPeakPrice.classList.add('hidden');
                basicOffPrice.classList.remove('hidden');
                premiumPeakPrice.classList.add('hidden');
                premiumOffPrice.classList.remove('hidden');
            }
        }
        
        // 页面加载时默认显示旺季价格
        document.addEventListener('DOMContentLoaded', function() {
            switchSeason('peak');
        });
    </script>
</body>
</html>